Benjamin Otte [Mon, 1 Apr 2013 13:37:38 +0000 (15:37 +0200)]
celrendererspinner: Don't use deprecated API
Benjamin Otte [Mon, 1 Apr 2013 13:37:20 +0000 (15:37 +0200)]
widget: Get rid of deprecation warnings
Benjamin Otte [Mon, 1 Apr 2013 13:37:04 +0000 (15:37 +0200)]
testsensitive: Remove deprecated part
Benjamin Otte [Mon, 1 Apr 2013 12:47:17 +0000 (14:47 +0200)]
gdkdisplay: Remove get_screen() and get_n_screens() vfuncs
Matthias Clasen [Tue, 2 Apr 2013 03:05:51 +0000 (23:05 -0400)]
Mention display:screen change in release notes
Ryan Lortie [Sat, 23 Mar 2013 20:15:04 +0000 (16:15 -0400)]
tests: improve gtkmenu testcase
Don't just create a menushell and populate it with random data -- verify that
the resulting menu layout is actually correct.
This is introduced in a separate commit because the old code was failing this
part of the test.
https://bugzilla.gnome.org/show_bug.cgi?id=696468
Ryan Lortie [Fri, 22 Mar 2013 21:24:46 +0000 (17:24 -0400)]
Introduce GtkMenuTracker
GtkMenuTracker folds a nested structure of sections in a GMenuModel into
a single linear menu, which it expresses to its user by means of 'insert
item at position' and 'remove item at position' callbacks.
The logic for where to insert separators and how to handle action
namespaces is contained within the tracker, removing the need to have
this logic duplicated in the 3 or 4 places that consume GMenuModel.
In comparison with the previous code, the tracker no longer completely
destroys and rebuilds menus every time a single change occurs. As a
result, the new gtkmenu testcase now runs in approximately 3 seconds
instead of ~60 before.
https://bugzilla.gnome.org/show_bug.cgi?id=696468
Ryan Lortie [Fri, 22 Mar 2013 21:20:43 +0000 (17:20 -0400)]
tests: add a test for gtk_menu_shell_bind()
Borrow the RandomMenu code from the GLib testsuite and hook it up to
gtk_menu_shell_bind().
https://bugzilla.gnome.org/show_bug.cgi?id=696468
Sébastien Wilmet [Mon, 1 Apr 2013 19:09:14 +0000 (21:09 +0200)]
gtktextattributes: move comment above relevant struct
https://bugzilla.gnome.org/show_bug.cgi?id=697048
Sébastien Wilmet [Mon, 1 Apr 2013 14:38:41 +0000 (16:38 +0200)]
GtkTextTagTable: simplify a bit the code
https://bugzilla.gnome.org/show_bug.cgi?id=697048
Sébastien Wilmet [Sat, 30 Mar 2013 22:09:34 +0000 (23:09 +0100)]
GtkTextView: remove some dead code
https://bugzilla.gnome.org/show_bug.cgi?id=697048
Sébastien Wilmet [Sun, 31 Mar 2013 17:08:49 +0000 (19:08 +0200)]
gtktextattributes: explain what is "pg_bg"
I didn't know what "pg" stands for.
https://bugzilla.gnome.org/show_bug.cgi?id=697048
Sébastien Wilmet [Fri, 29 Mar 2013 13:09:06 +0000 (14:09 +0100)]
gtktextattributes: include the right headers
Some function prototypes in gtktexttagprivate.h are implemented in
gtktextattributes.c.
https://bugzilla.gnome.org/show_bug.cgi?id=697048
Sébastien Wilmet [Thu, 28 Mar 2013 20:50:08 +0000 (21:50 +0100)]
gtktexttypes: remove inline_byte_begins_utf8_char()
The function was used only in gtk_text_byte_begins_utf8_char().
https://bugzilla.gnome.org/show_bug.cgi?id=697048
Sébastien Wilmet [Mon, 1 Apr 2013 19:00:04 +0000 (21:00 +0200)]
Doc: fix dead link in the text widget overview
https://bugzilla.gnome.org/show_bug.cgi?id=697048
Sébastien Wilmet [Thu, 28 Mar 2013 22:16:20 +0000 (23:16 +0100)]
Doc: move the GtkTextAttributes struct
It's more logical to have the GtkTextAttributes and GtkTextAppearance
structs together. And it creates a separation between gtk_text_tag and
gtk_text_attributes functions.
https://bugzilla.gnome.org/show_bug.cgi?id=697048
Alexander Larsson [Mon, 1 Apr 2013 15:29:06 +0000 (17:29 +0200)]
broadway: Use wss: on https: uris
Benjamin Otte [Sun, 25 Nov 2012 20:11:48 +0000 (21:11 +0100)]
Deprecate gdk_get_display()
Benjamin Otte [Sun, 25 Nov 2012 20:09:58 +0000 (21:09 +0100)]
gdk: Shuffle code around
Make implementation, header and documentation be at the correct place.
Benjamin Otte [Sun, 25 Nov 2012 19:17:30 +0000 (20:17 +0100)]
x11: Make display:screen relation 1:1
Only ever open the default screen.
If apps need support for multiple screens, they need to
gdk_display_open() them manually.
Benjamin Otte [Fri, 29 Mar 2013 12:36:01 +0000 (13:36 +0100)]
wayland: Remove unused variable
Matthias Clasen [Mon, 1 Apr 2013 02:46:31 +0000 (22:46 -0400)]
Remove an unused filed in GdkWindowImplWayland
The unused toplevel_window_type field was copied over from
the X backend.
Matthias Clasen [Mon, 1 Apr 2013 02:44:59 +0000 (22:44 -0400)]
Remove an unused field in GdkWindowX11
The toplevel_window_type field was only ever set to -1, and
never used. The actual, used toplevel_window_type field lives
in GdkWindow.
Ville-Pekka Vainio [Sun, 31 Mar 2013 17:17:23 +0000 (20:17 +0300)]
Finnish translation update by Jiri Grönroos
Carles Ferrando [Sun, 31 Mar 2013 15:03:03 +0000 (17:03 +0200)]
[l10n] Updated Catalan (Valencian) translation
Kristian Høgsberg [Sat, 30 Mar 2013 18:18:54 +0000 (14:18 -0400)]
wayland: Set a wayland-client log handler to print errors we get
Kristian Høgsberg [Sat, 30 Mar 2013 18:17:07 +0000 (14:17 -0400)]
wayland: Don't error out on G_IO_HUP until we've read G_IO_IN data
We can get G_IO_HUP and G_IO_IN at the same time, if the compositor writes
data to us and then closes our connection. Make sure that we dispatch events
always if we have G_IO_IN and then error out if we get G_IO_HUP after that.
Carles Ferrando [Sat, 30 Mar 2013 15:24:03 +0000 (16:24 +0100)]
[l10n] Updated Catalan (Valencian) translation
Pau Iranzo [Sat, 30 Mar 2013 15:22:48 +0000 (16:22 +0100)]
[l10n] Update Catalan translation
Matej Urbančič [Sat, 30 Mar 2013 10:13:50 +0000 (11:13 +0100)]
Updated Slovenian translation
Matej Urbančič [Sat, 30 Mar 2013 10:09:59 +0000 (11:09 +0100)]
Updated Slovenian translation
Matej Urbančič [Sat, 30 Mar 2013 10:07:17 +0000 (11:07 +0100)]
Updated Slovenian translation
Matej Urbančič [Sat, 30 Mar 2013 08:47:45 +0000 (09:47 +0100)]
Updated Slovenian translation
Alexander Larsson [Fri, 29 Mar 2013 08:50:59 +0000 (09:50 +0100)]
broadway: Reuse surfaces passed to server
This way we don't have to reopen all the time for pure updates,
and we can immediately unlink the shm file to avoid "leaking" them
on improper shutdown.
Alexander Larsson [Fri, 29 Mar 2013 08:38:34 +0000 (09:38 +0100)]
broadway: Move surface open to server
This way we can cache the last opened surface
Alexander Larsson [Thu, 28 Mar 2013 23:23:41 +0000 (00:23 +0100)]
broadway: Make chrome work again
Alexander Larsson [Thu, 28 Mar 2013 21:57:33 +0000 (22:57 +0100)]
broadway: Add support for password authentication
Alexander Larsson [Thu, 28 Mar 2013 19:03:13 +0000 (20:03 +0100)]
broadway: Limit window resize based on window geometry
Alexander Larsson [Thu, 28 Mar 2013 18:22:42 +0000 (19:22 +0100)]
broadway: Sync surface updates with paint clock
We now only update surface data after we have painted. Before we painted
in an idle, which meant we might send black data some times if we e.g.
resized the window and had not painted yet. Also, it means we're updating
less often to the daemon, saving resources.
We still have to queue a flush in the idle for non-draw operations,
otherwise e.g. resize of a toplevel will never be flushed if the clock
is frozen (e.g. during toplevel resize).
Alexander Larsson [Thu, 28 Mar 2013 18:00:23 +0000 (19:00 +0100)]
broadway: Ensure window sizes are synched right
We don't want to update the window size on configure event, only
the position, as the size is client side controlled. We were
updating to an old size during resizes which causes us to send
surfaces of the wrong size to the daemon.
Alexander Larsson [Thu, 28 Mar 2013 16:38:44 +0000 (17:38 +0100)]
broadway: Clean up moveresize code
Alexander Larsson [Thu, 28 Mar 2013 16:38:01 +0000 (17:38 +0100)]
broadway: Remove leftover cruft that caused resize to fail
getTransientToplevel() doesn't exist anymore so this broke.
Alexander Larsson [Thu, 28 Mar 2013 15:27:49 +0000 (16:27 +0100)]
broadway: Fix mouse position typo
Benjamin Otte [Thu, 28 Mar 2013 22:17:32 +0000 (23:17 +0100)]
reftests: Add a reftest for color resolving errors
This checks the fixes in the last two commits.
Benjamin Otte [Thu, 28 Mar 2013 22:13:43 +0000 (23:13 +0100)]
cssvalue: At cycle detection to color resolving
The following CSS would infloop:
@define-color self @self
as it would infinitely lookup the color named "self" and try to resolve
it. This patch adds detection of such cycles to the resolve function by
keeping a list of currently resolving colors in the cycle_list variable.
Benjamin Otte [Thu, 28 Mar 2013 21:52:30 +0000 (22:52 +0100)]
cssvalue: Handle named colors not resolving
If a named color references a nonexistant named color, we didn't catch
that error and ended up crashing on a NULL-dereference.
This crashed Boxes, because its CSS referenced values from the theme
that didn't exist in any theme.
Benjamin Otte [Tue, 26 Mar 2013 12:27:45 +0000 (13:27 +0100)]
menuitem: Remove old themeing enhancement
CSS doesn't allow themeing parents based on the state of their children,
so this code just causes extra redraws today.
Benjamin Otte [Tue, 26 Mar 2013 12:15:20 +0000 (13:15 +0100)]
menushell: Remove unused header
Benjamin Otte [Tue, 26 Mar 2013 12:14:05 +0000 (13:14 +0100)]
menu: Move enum declaration to correct header
That enum is used in GtkMenuShellClass, so put it there.
Benjamin Otte [Tue, 26 Mar 2013 12:02:59 +0000 (13:02 +0100)]
tearoffmenuitem: Use public API, don't poke GtkMenuPrivate
Chris Cummins [Thu, 28 Mar 2013 12:08:43 +0000 (12:08 +0000)]
wayland: Implement animatable cursors
Cursor animations are handled on a per-device basis, with
GdkWaylandDevice updating the pointer surface for each frame.
https://bugzilla.gnome.org/show_bug.cgi?id=696429
Chris Cummins [Tue, 26 Mar 2013 14:44:24 +0000 (14:44 +0000)]
wayland: Do not free wayland cursor buffers
The cursor buffer is only non-null when a cursor is created from pixbuf,
so it is not necessary to keep track of whether to free this buffer on
finalize.
Chris Cummins [Tue, 26 Mar 2013 14:19:37 +0000 (14:19 +0000)]
wayland: Differentiate wayland and pixbuf cursors
By keeping a pointer to the wl_cursor struct in GdkWaylandCursor, it is
no longer necessary to duplicate cursor data (width, height, hotspots,
etc.) between wl_cursor and GdkWaylandCursor.
Andika Triwidada [Thu, 28 Mar 2013 14:05:01 +0000 (21:05 +0700)]
Updated Indonesian translation of po-properties
Alexander Larsson [Thu, 28 Mar 2013 12:24:04 +0000 (13:24 +0100)]
GtkOverlay: Respect overlay child min size
Never allocate an overlayed child less than its minimum request.
If the minimum doesn't fit we will gracefully clip via the
widget window.
https://bugzilla.gnome.org/show_bug.cgi?id=696623
Alexander Larsson [Thu, 28 Mar 2013 11:10:09 +0000 (12:10 +0100)]
GtkOverlay: Don't allocate child except in size_allocate
We were calling gtk_overlay_child_allocate() both in realize
and in add as we wanted to create and position the child windows
for the widgets. However, this call also actually called
gtk_widget_size_allocate() on the child, which it shouldn't. In some
cases the overlay is realized before being allocated, and thus it
will allocate the child at 0x0 which is an invalid size for it to be in.
In particular, if the child has margins set this will result in negative
allocations and warnings.
This fix splits out the allocation computation so that
gtk_overlay_create_child_window can use it without callers
having to call gtk_overlay_child_allocate() to move the windows.
https://bugzilla.gnome.org/show_bug.cgi?id=696623
Kristian Rietveld [Sun, 30 Dec 2012 16:09:22 +0000 (17:09 +0100)]
quartz: move atom/pasteboard type conversions functions to GDK
(cherry picked from commit
a269c2f8d26a588c4b61ad605ef496e89759cc03)
Jan Arne Petersen [Wed, 20 Mar 2013 15:40:26 +0000 (16:40 +0100)]
docs: Add wayland documentation to Gdk reference
Kristian Høgsberg [Wed, 27 Mar 2013 17:38:15 +0000 (13:38 -0400)]
wayland: Use the wl_display_sync() request to track pending init roundtrips
Instead of maintaining the init refcount in regular event handlers that can
fire in case of hotplug or mode changes, use a dedicated sync callback
to wait for roundtrips.
Kristian Høgsberg [Wed, 27 Mar 2013 17:21:54 +0000 (13:21 -0400)]
wayland: Pass most recent button press serial to set_popup_surface
Alexander Larsson [Wed, 27 Mar 2013 10:47:37 +0000 (11:47 +0100)]
gdkwindow: Apply layered areas to the shape for native windows
If a window is overlapped by a layered (i.e. partially transparent)
window then that region will not disappear from the native window clip
region. This lets us handle compositing multiple layers of windows.
For native subwindows this doesn't really work. For them we apply the
clip region as a shape to the native window which lets us have client
side windows overlapping the native window. However, with the addition
of the layered stuff the "overlapped-by-alpha-csw" part got broken, as
this area is not removed from the clip region of the native window.
We fix this by also removing the layered area when applying the shape.
This means alpha and alpha backgrounds don't work over native windows,
but there is not much to do about that.
https://bugzilla.gnome.org/show_bug.cgi?id=696370
Alexander Larsson [Wed, 27 Mar 2013 10:42:44 +0000 (11:42 +0100)]
gdkwindow: Add alpha_bg to window debug print
Matthias Clasen [Wed, 27 Mar 2013 04:23:19 +0000 (00:23 -0400)]
Fix GtkApplicationWindow menubar placement
Since the menubar is part of the content, we need to give
it the content_window as parent window, to make things
work again.
https://bugzilla.gnome.org/show_bug.cgi?id=696561
Matthias Clasen [Wed, 27 Mar 2013 03:30:10 +0000 (23:30 -0400)]
Don't return FALSE from a non-boolean function
https://bugzilla.gnome.org/show_bug.cgi?id=696608
Matthias Clasen [Wed, 27 Mar 2013 02:57:46 +0000 (22:57 -0400)]
wayland: Handle seat removal
Also, emit ::device-added and ::device-removed signals
as devices appear and disappear.
Matthias Clasen [Wed, 27 Mar 2013 02:16:15 +0000 (22:16 -0400)]
wayland: Make monitor removal work
The global_removal argument is the _name_ of the object.
We were comparing it to the _object id_ of the object.
To fix this, store the name at the time the object is bound.
Matthias Clasen [Wed, 27 Mar 2013 01:53:41 +0000 (21:53 -0400)]
wayland: Also emit monitors-changed when monitors are unplugged
Matthias Clasen [Wed, 27 Mar 2013 01:47:49 +0000 (21:47 -0400)]
wayland: Also emit size-changed when appropriate
We need to be a bit more careful when updating the screen
size - the code that was there would not do the right thing
if e.g. the width of one monitor was reduced.
Matthias Clasen [Wed, 27 Mar 2013 01:37:21 +0000 (21:37 -0400)]
wayland: Emit monitors-changed when monitors change
Matthias Clasen [Wed, 27 Mar 2013 01:27:21 +0000 (21:27 -0400)]
Don't decrement the init_ref_count towards -infinity
Once we are at zero, initialization is done.
Matthias Clasen [Wed, 27 Mar 2013 00:46:13 +0000 (20:46 -0400)]
Pimp up testheaderbar some more
Marek Černocký [Tue, 26 Mar 2013 22:06:55 +0000 (23:06 +0100)]
Updated Czech translatio
Kristian Høgsberg [Tue, 26 Mar 2013 21:23:31 +0000 (17:23 -0400)]
wayland: Set screen size to bounding box of all outputs
Don't hardcode 8192x8192. We don't get this info from wayland, so we
compute it as we receive information about the available wl_outputs.
https://bugzilla.gnome.org/show_bug.cgi?id=692871
Kristian Høgsberg [Tue, 26 Mar 2013 18:42:14 +0000 (14:42 -0400)]
wayland: Roundtrip until we've receive initial input and output configuration
We use a ref-count mechanism to track whether parts of the init sequence
still needs round trips to receive remaining initial state. Typically
we need a couple of roundtrips total to get the global list, then the
input and output configurations, but with the ref-count we avoid making
global assumptions like that.
https://bugzilla.gnome.org/show_bug.cgi?id=696340
Chun-wei Fan [Mon, 18 Mar 2013 01:16:13 +0000 (09:16 +0800)]
Bug 695895: Fix gtk3-demo on Windows
In commit
4e41577b, we are using g_content_type_is_a() to determine how
to display the demo resources in the right pane of the gtk3-demo program.
Use g_content_type_get_mime_type(), so that we can obtain the mime
type of the demo resources on all platforms, as g_content_type_guess()
returns a platform-specific string, as
https://developer.gnome.org/gio/2.35/gio-GContentType.html states.
As .ui files and .css files are normally registered with a different mime
type string on Windows, check for those strings as well.
This will ensure the demo resources can be properly displayed on Windows
as well.
Chun-wei Fan [Tue, 26 Mar 2013 03:56:32 +0000 (11:56 +0800)]
Fix Visual Studio property sheets
The creation of the folder for the "installation" of a11y headers is wrong,
so fix that.
Daniel Korostil [Mon, 25 Mar 2013 20:39:47 +0000 (22:39 +0200)]
Added uk translation
Mario Blättermann [Mon, 25 Mar 2013 18:29:37 +0000 (19:29 +0100)]
[l10n] Updated German translation
Carlos Garcia Campos [Mon, 25 Mar 2013 12:01:23 +0000 (13:01 +0100)]
gtkprintbackendcups: Fix a crash in avahi_create_browsers()
In avahi_request_printer_list() a new connection to the DBus system bus
is started asynchronously, but it's not cancellable and it's not taking
any reference of the GtkPrintBackendCups. This means that when the
callback is called, the object might have been destroyed already. We can
just pass the cancellable created and check for the cancelled error in
the callback before trying to use the GtkPrintBackendCups. The code to
cancel avahi operations and to unsibscribe from the DBus signals has
been moved from finalize to dispose to make sure it happens as soon as
possible.
https://bugzilla.gnome.org/show_bug.cgi?id=696553
Carlos Garcia Campos [Mon, 25 Mar 2013 11:09:52 +0000 (12:09 +0100)]
gtkprintbackendcups: Fix a crash in gtk_print_backend_cups_finalize()
If GtkPrintBackendCups is finalized and cups_get_printer_list hasn't
been called, g_object_unref is called for the GDBusConnection pointer
that is NULL. Use g_clear_object() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=696546
Alexandre Franke [Mon, 25 Mar 2013 11:07:06 +0000 (12:07 +0100)]
Update French translation
Shantha kumar [Mon, 25 Mar 2013 09:48:45 +0000 (15:18 +0530)]
Tamil Translations Updated
Shantha kumar [Mon, 25 Mar 2013 09:48:30 +0000 (15:18 +0530)]
Tamil Translations Updated
Ani Peter [Mon, 25 Mar 2013 08:33:52 +0000 (14:03 +0530)]
Completed for Malayalam
Matthias Clasen [Sun, 24 Mar 2013 18:55:52 +0000 (14:55 -0400)]
wayland: Add toolbar settings
Luca Ferretti [Sun, 24 Mar 2013 19:57:22 +0000 (20:57 +0100)]
[l10n] updated Italian translation
Jan Arne Petersen [Wed, 20 Mar 2013 15:38:36 +0000 (16:38 +0100)]
wayland: Add support for custom surfaces
Allow to set a GdkWindow to use a custom surface instead of a
wl_shell_surface. It allows to register the surface as a custom type
with some Wayland interface.
https://bugzilla.gnome.org/show_bug.cgi?id=695861
Matthias Clasen [Sun, 24 Mar 2013 18:21:41 +0000 (14:21 -0400)]
broadway: Don't use deprecated gdk_cursor_ref
Sébastien Wilmet [Tue, 19 Mar 2013 13:31:43 +0000 (14:31 +0100)]
GtkWidget: add missing deprecation marks
https://bugzilla.gnome.org/show_bug.cgi?id=696138
Petr Kovar [Sun, 24 Mar 2013 18:19:07 +0000 (19:19 +0100)]
Update Czech translation
Sébastien Wilmet [Sat, 23 Mar 2013 15:44:49 +0000 (16:44 +0100)]
GtkLabel: fix underlining of mnemonics
The underscore was shown in front of the mnemonic instead of underlining
it (e.g., _Save).
Thanks to Lars Uebernickel.
https://bugzilla.gnome.org/show_bug.cgi?id=674759
Ask H. Larsen [Sun, 24 Mar 2013 13:50:40 +0000 (14:50 +0100)]
Updated Danish translation
Mario Blättermann [Sun, 24 Mar 2013 11:53:30 +0000 (12:53 +0100)]
[l10n] Updated German translation
Matthias Clasen [Sun, 24 Mar 2013 01:06:14 +0000 (21:06 -0400)]
csd: Reparent the content
This lets us avoid problems with cursor changes.
Matthias Clasen [Sat, 23 Mar 2013 23:41:39 +0000 (19:41 -0400)]
Make gtk_init_check work as expected
When no GDK backend can be initialized (either because
GDK_BACKEND has been set to the wrong value, or the backends
are simply not included), the expectation is that gtk_init_check
should return FALSE, not error out.
This commit makes it so, by using gdk_display_manager_peek
instead of gdk_display_manager_get in code paths that are used
during initialization.
Matthias Clasen [Sat, 23 Mar 2013 23:40:16 +0000 (19:40 -0400)]
Make gdk_display_open_default_libgtk_only more robust
Make this function return NULL if GDK could not be
initialized. We check this by seeing if there is a
display manager singleton.
Matthias Clasen [Sat, 23 Mar 2013 23:39:58 +0000 (19:39 -0400)]
Add gdk_display_manager_peek
Instead of failing with an error if no GDK backend is found like
gdk_display_manager_get(), the new peek function silently returns
NULL.
Matthias Clasen [Sat, 23 Mar 2013 22:31:20 +0000 (18:31 -0400)]
wayland: Remove a few unused variables
Matthias Clasen [Sat, 23 Mar 2013 22:02:28 +0000 (18:02 -0400)]
wayland: Don't recreated keymaps on layout change
The GDK model for keymaps expects the keymap object to stay
around and emit a ::keys-changed signal. So, do that. This
should make layout changes work, but it remains untested since
weston does not support layout changes at runtime.
At the same time, plug a memory leak where GdkWaylandKeymap
forgot to free its xkb objects in finalize.
https://bugzilla.gnome.org/show_bug.cgi?id=696339
Tarnyko [Sat, 23 Mar 2013 21:42:55 +0000 (17:42 -0400)]
win32: Bring back spinner animation
Define the spinner animation in css.
https://bugzilla.gnome.org/show_bug.cgi?id=696202